﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bluyel.Core
{
    /// <summary>
    /// Build Id objects.
    /// </summary>
    public class IdFactory
    {
        //=====================================================================
        #region Create id.

        //---------------------------------------------------------------------
        public UniqueId CreateId()
        {
            return new UniqueId();
        }

        //---------------------------------------------------------------------
        public UniqueId CreateId(string guidStr)
        {
            if (string.IsNullOrWhiteSpace(guidStr))
                return null;

            return new UniqueId(guidStr);
        }
        #endregion

    }
}
